/*
** my_power_rec.c for  in /home/vanet_c//piscine/Jour_05
** 
** Made by charles-edouard vanet
** Login   <vanet_c@epitech.net>
** 
** Started on  Fri Oct  5 11:15:31 2012 charles-edouard vanet
** Last update Thu Dec  6 11:48:21 2012 charles-edouard vanet
*/

int	my_power_rec(int nb, int power)
{
  if (power < 0)
    return (0);
  if (nb < 0 && power % 2 == 0)
    nb = nb * -1;
  if (power == 0)
    return (1);
  else
    return (nb * my_power_rec(nb , power - 1));
}
